package com.chinacoal.microservice.impl.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.chinacoal.microservice.model.wofkflow.QueryAgentParam;
import com.chinacoal.microservice.model.wofkflow.entity.AgentEntity;
import com.chinacoal.microservice.model.wofkflow.entity.AgentItemEntity;

/**  
 * @Package: com.chinacoal.microservice.impl.mapper.AgentMapper
 * @ClassName: AgentMapper
 * @ClassDesc: 代理审批授权管理 Mapper
 * @Createby: sunh
 * @CreatedDate: 2019-11-29 09:30:11
 */  
public interface AgentMapper extends BaseMapper<AgentEntity> {
	
	/**  
	 * @Package: com.chinacoal.microservice.impl.mapper.AgentMapper.findList
	 * @MethodName: findList
	 * @MethodDesc: 查询代理审批授权列表
	 * @ParamList: {
	 *				 @param page
	 *				 @param param
	 *			   }
	 * @Return: List<AgentEntity>
	 * @Createby: sunh
	 * @CreatedDate: 2019-12-15 14:55:50
	 */ 
	public List<AgentEntity> findList(Page<AgentEntity> page, QueryAgentParam param) throws Exception;
	
	/**  
	 * @Package: com.chinacoal.microservice.impl.mapper.AgentMapper.findOne
	 * @MethodName: findOne
	 * @MethodDesc: 查询代理审批授权详情信息
	 * @ParamList: {
	 *				 @param agentId
	 *			   }
	 * @Return: AgentEntity
	 * @Createby: sunh
	 * @CreatedDate: 2019-12-15 16:39:41
	 */ 
	public AgentEntity findOne(@Param("agentId") Long agentId) throws Exception;
	
	/**  
	 * @Package: com.chinacoal.microservice.impl.mapper.AgentMapper.getAgentItemList
	 * @MethodName: getAgentItemList
	 * @MethodDesc: 查询代理审批授权行信息
	 * @ParamList: {
	 *				 @param agentId
	 *			   }
	 * @Return: List<AgentItemEntity>
	 * @Createby: sunh
	 * @CreatedDate: 2019-12-15 16:42:58
	 */ 
	public List<AgentItemEntity> getAgentItemList(@Param("agentId") Long agentId) throws Exception;
	
	/**  
	 * @Package: com.chinacoal.microservice.impl.mapper.AgentMapper.updateAgentItem
	 * @MethodName: updateAgentItem
	 * @MethodDesc: 修改代理审批授权行信息
	 * @ParamList: {
	 *				 @param agentItemEntity
	 *			   }
	 * @Return: void
	 * @Createby: sunh
	 * @CreatedDate: 2019-12-15 17:51:21
	 */ 
	public void updateAgentItem(AgentItemEntity agentItemEntity) throws Exception;
	
	/**  
	 * @Package: com.chinacoal.microservice.impl.mapper.AgentMapper.deleteAgentItem
	 * @MethodName: deleteAgentItem
	 * @MethodDesc: 删除代理审批授权行信息
	 * @ParamList: {
	 *				 @param agentItemId
	 *			   }
	 * @Return: void
	 * @Createby: sunh
	 * @CreatedDate: 2019-12-15 18:15:56
	 */ 
	public void deleteAgentItem(@Param("agentItemId") Long agentItemId) throws Exception;

}
